Package com.cisco.pt.ipc.sim.pdu.impl
Class STPFrameImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.STPFrameImpl
- Direct Known Subclasses:
RstpFrameImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected STPIdprotected Byteprotected Shortprotected Shortprotected List<STPTypeLengthValue>protected Shortprotected Shortprotected STPBpduTypeprotected Shortprotected Shortprotected STPIdprotected intprotected ByteFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) getFlags()intvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetBridgeId(STPId bridgeId) voidvoidsetForwardDelay(Short forwardDelay) voidsetHelloTime(Short helloTime) voidsetLengthValues(List<STPTypeLengthValue> lengthValues) voidvoidsetMessageAge(Short messageAge) voidsetMessageType(STPBpduType messageType) voidvoidsetProtocolId(Short protocolId) voidsetRootBridgeId(STPId rootBridgeId) voidsetRootPathCost(int rootPathCost) voidsetVersion(Byte version) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
protocolId
-
version
-
messageType
-
flags
-
rootBridgeId
-
rootPathCost
protected int rootPathCost -
bridgeId
-
portId
-
messageAge
-
maxAge
-
helloTime
-
forwardDelay
-
lengthValues
-
-
Constructor Details
-
STPFrameImpl
public STPFrameImpl()
-
-
Method Details
-
getProtocolId
- Specified by:
getProtocolIdin interfaceSTPFrame- Returns:
- Short Returns a Short
-
setProtocolId
- Specified by:
setProtocolIdin interfaceSTPFrame- Parameters:
protocolId- Takes in a parameter of protocolId
-
getVersion
- Specified by:
getVersionin interfaceSTPFrame- Returns:
- Byte Returns a Byte
-
setVersion
- Specified by:
setVersionin interfaceSTPFrame- Parameters:
version- Takes in a parameter of version
-
getMessageType
- Specified by:
getMessageTypein interfaceSTPFrame- Returns:
- STPBpduType Returns a STPBpduType
-
setMessageType
- Specified by:
setMessageTypein interfaceSTPFrame- Parameters:
messageType- Takes in a parameter of messageType
-
getFlags
-
setFlags
-
getRootBridgeId
- Specified by:
getRootBridgeIdin interfaceSTPFrame- Returns:
- STPId Returns a STPId
-
setRootBridgeId
- Specified by:
setRootBridgeIdin interfaceSTPFrame- Parameters:
rootBridgeId- Takes in a parameter of rootBridgeId
-
getRootPathCost
public int getRootPathCost()- Specified by:
getRootPathCostin interfaceSTPFrame- Returns:
- int Returns a int
-
setRootPathCost
public void setRootPathCost(int rootPathCost) - Specified by:
setRootPathCostin interfaceSTPFrame- Parameters:
rootPathCost- Takes in a parameter of rootPathCost
-
getBridgeId
- Specified by:
getBridgeIdin interfaceSTPFrame- Returns:
- STPId Returns a STPId
-
setBridgeId
- Specified by:
setBridgeIdin interfaceSTPFrame- Parameters:
bridgeId- Takes in a parameter of bridgeId
-
getPortId
-
setPortId
-
getMessageAge
- Specified by:
getMessageAgein interfaceSTPFrame- Returns:
- Short Returns a Short
-
setMessageAge
- Specified by:
setMessageAgein interfaceSTPFrame- Parameters:
messageAge- Takes in a parameter of messageAge
-
getMaxAge
-
setMaxAge
-
getHelloTime
- Specified by:
getHelloTimein interfaceSTPFrame- Returns:
- Short Returns a Short
-
setHelloTime
- Specified by:
setHelloTimein interfaceSTPFrame- Parameters:
helloTime- Takes in a parameter of helloTime
-
getForwardDelay
- Specified by:
getForwardDelayin interfaceSTPFrame- Returns:
- Short Returns a Short
-
setForwardDelay
- Specified by:
setForwardDelayin interfaceSTPFrame- Parameters:
forwardDelay- Takes in a parameter of forwardDelay
-
getLengthValues
- Specified by:
getLengthValuesin interfaceSTPFrame- Returns:
- List<STPTypeLengthValue> Returns a List<STPTypeLengthValue>
-
setLengthValues
- Specified by:
setLengthValuesin interfaceSTPFrame- Parameters:
lengthValues- Takes in a parameter of lengthValues
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-